package com.qf.service.impl;

import com.qf.mapper.DepartmentMapper;
import com.qf.mapper.EmployeeMapper;
import com.qf.pojo.Department;
import com.qf.pojo.Employee;
import com.qf.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class DepartmentServiceImpl  implements DepartmentService {
    @Autowired
    private DepartmentMapper mapper = null;



    @Override
    public List<Department> getAllDept() {
        List<Department> departments =mapper.selectList(null);
        return departments;
    }


}
